package org.zjx.log;

/**
 * ThreadSafeLogHandler确保日志处理是线程安全的。
 */
public class ThreadSafeLogHandler implements LogHandler {
    private LogHandler logHandler;

    public ThreadSafeLogHandler(LogHandler logHandler) {
        this.logHandler = logHandler;
    }

    @Override
    public synchronized void handleLog(LogLevel level, String message) {
        logHandler.handleLog(level, message);
    }
}

